﻿using System.Windows.Controls;
using System.Windows;
using Esponce.Models;

namespace Esponce.Views
{
	public partial class TrackQRCodeView : UserControl
	{
		public TrackQRCodeView()
		{
			InitializeComponent();
		}

		public TrackQRCodeViewModel ViewModel
		{
			get
			{
				return this.DataContext as TrackQRCodeViewModel;
			}
		}

		private void btnSelect_Click(object sender, RoutedEventArgs e)
		{
			ViewModel.Select();
		}

		private void btnInsert_Click(object sender, RoutedEventArgs e)
		{
			ViewModel.Insert();
		}

		private void btnUpdate_Click(object sender, RoutedEventArgs e)
		{
			ViewModel.Update();
		}

		private void btnDelete_Click(object sender, RoutedEventArgs e)
		{
			ViewModel.Delete();
		}
	}
}
